import type { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/weathers',
    name: 'weather',
    component: () => import('@/componenets/Weather.vue'),
  },
  {
    path:"/user/list",
    name:"list",
    component:()=>import("@/views/user/UserList.vue")
  },
  {
    path: '/orders',
    name: 'orders',
    component: () => import('@/componenets/Orders.vue'),
    children: [
      // {
      //   path: '',
      //   redirect: '/orders/planlist' // 默认重定向
      // },
      {
        path: '/orders/addrecord',
        name: 'addrecord',
        component: () => import('@/componenets/OrderList/AddRecord.vue'),
      },
      {
        path: '/orders/addplan',
        name: 'addplan',
        component: () => import('@/componenets/OrderList/AddPlan.vue'),
      },
      // {
      //   path: '/orders/planlist',
      //   name: 'planlist',
      //   component: () => import('@/componenets/OrderList/PlanList.vue'),
      // },

      // children: [
      {
        path: '/orders/edit',
        name: 'edit',
        component: () => import('@/componenets/OrderList/Edit.vue'),
      },
      {
        path: '/orders/buy',
        name: 'buy',
        component: () => import('@/componenets/OrderList/Buy.vue'),
      },
      {
        path: '/orders/check',
        name: 'check',
        component: () => import('@/componenets/OrderList/CheckList.vue'),
      },
      // ]

      // {
      //   path: '/orders/recordlist',
      //   name: 'recordlist',
      //   component: () => import('@/componenets/OrderList/RecordList.vue'),
      // },
      // children: [
      {
        path: '/orders/editre',
        name: 'editre',
        component: () => import('@/componenets/OrderList/EditRe.vue'),
      },
      {
        path: '/orders/check1',
        name: 'check1',
        component: () => import('@/componenets/OrderList/CheckList1.vue'),
      },
      // ]

      {
        path: '/orders/total',
        name: 'total',
        component: () => import('@/componenets/OrderList/TotalList.vue'),
      },
    ]
  },
  {
    path: '/product',
    name: 'product',
    component: () => import('@/componenets/Product.vue'),
  },
] as RouteRecordRaw[]
